package com.UI 
{
	import flash.display.FrameLabel;
	import flash.display.MovieClip;
	import flash.geom.ColorTransform;
	import flash.text.TextField;
	/**
	 * ...
	 * @author Imola
	 */
	public class PlayerToolbar extends MovieClip
	{
		private var ct:ColorTransform;
		private var toolbarWidth:uint;
		private var toolbarHeight:uint;
		private var levelTextField:TextField;
		
		public function PlayerToolbar(tWidth:uint, tHeight:uint) 
		{
			this.toolbarHeight = tHeight;
			this.toolbarWidth = tWidth;
			ct = new ColorTransform;
			levelTextField = new TextField();
			initMovieClip();
		}
		
		public function initMovieClip():void {
			this.graphics.beginFill(0x66ccff);
			this.graphics.drawRect(0, 0, toolbarWidth, toolbarHeight);
			levelTextField.text = "Level: ";
			levelTextField.x = 5;
			levelTextField.y = 5;
			levelTextField.visible = true;
			levelTextField.backgroundColor = 0x554478;
			addChild(levelTextField);
			setLevelNumber(5);
		}
		
		public function setLevelNumber(levelNr:uint):void {
			levelTextField.text = "Level: " + levelNr;
		}
	}

}